
<?php
    // Создаём meta тег Content-Type
    $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
    // Указываем символ разделитель в теге title
    $this->headTitle()->setSeparator(' - ');
    // Определяем содержимое тега title
    $this->headTitle('My site');
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
            
                <?php   echo $this->jquery();?>
                <?php   echo $this->headMeta();?>
                <?php 
                                                        $this->headLink()->appendStylesheet('/css/blueprint/screen.css', 'screen');
                                                        $this->headLink(array('rel' => 'favicon',
                                                                        'href' => 'img/favicon.ico'),
                                                                        'PREPEND');
                                                        $this->headLink() ->prependStylesheet('/css/blueprint/ie.css',
                                                                            'screen','ie');
                                                        $this->headLink()->prependStylesheet('/css/blueprint/print.css',
                                                                            'print');
                                                       $this->headLink()->prependStylesheet('/css/colorbox.css');
                                                        $this->headScript()->prependFile('http://webplayer.yahooapis.com/player.js');
                                                        $this->headScript()->prependFile('/js/jquery/jquery.colorbox.js');
                                                        $this->headScript()->prependFile('/js/jquery/jquery.colorbox-min.js');
                                                        echo  $this->headLink();
                                                        echo  $this->headScript();
                                            ?>
          		<script>
			$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
				$(".gr1").colorbox({rel:'gr'});
				$(".gr2").colorbox({rel:'gr2', transition:"fade"});
				$(".gr3").colorbox({rel:'gr3', transition:"none", width:"75%", height:"75%"});
				$(".gr4").colorbox({rel:'gr4', slideshow:true});
			
				});

		</script>
        </head>
                <body>
                    <div class="container">
                        <div class="header">
                        </div>
                        <div id="nav" class ="menu span-24">
                            <?php echo $this->navigation()->menu($this->menu); ?> 
                        </div>
                        
                    <div class="menu span-4 border">
                        <h3>
                            <?php // echo $this->translate('Меню'); ?>
                        </h3>

                        <?php //echo $this->navigation()->menu($this->menu); ?>
                        <?php if($this->identity):  ?>
                            <p>Привет, <?echo  $this->identity->username; ?></p>
                            <p>Твоя роль, <?echo  $this->identity->role; ?></p>
                        <?php else: ?>
                                 <?php 
                                                                                             //       if($this->action('login', 'users'))
                                                                                          //          echo $this->action('login', 'users', 'user'); 
                                                                                          ?>
                        <?php endif; ?>
                    </div>
                    <div id="breadcrumbs">
                        <?php echo $this->navigation()->breadcrumbs($this->menu)->setLinkLast(true)->setSeparator('>>>'); //Карта сайта 
                   //     echo $this->navigation()->sitemap($this->menu)->setFormatOutput(true);?>

                </div>
                    <div class="content span-20 colborder">
                        <h1>
                        <?php
                                                                                // Выводим заголовок странице, который будем формировать в каждом view
                                                                                echo $this->escape($this->title);
                                                                ?>
                        </h1>
                        <?php
                                                                                // Данная запись выводит содержимое view
                                                                                echo $this->layout()->content;
                                                                ?>
                    </div>
                </div>
                    <div class="container">
                        <div class="bottom span-24 last">
                            <h1>Footer</h1>
                        </div>
                    </div>
                </body>
</html>









